package com.kehutong.house.util;

import org.apache.http.client.utils.DateUtils;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;

/**
 * TODO
 *
 * @author zhouweipeng
 * @version 1.0
 * @date 2021/7/19 10:18
 */
public class RandomUtils {
    public static int getRandomNumber(int len){
        int rs = (int) ((Math.random() * 9 + 1) * Math.pow(10, len - 1));
        return rs;
    }
    public static String getRandomCardSeq (){
        return DateUtils.formatDate(new Date(),"yyyyMMddHHmmssSSS")+ RandomUtils.getRandomNumber(6);
    }
}
